import requests
def face_search(API_key,API_sercret,face_token,faceset_token):
    """该函数调用face++ face_detect接口,用于人脸搜索"""
    base_url = 'https://api-cn.faceplusplus.com/facepp/v3/search'
    
    payload = {
            "api_key":API_key,
            "api_secret":API_sercret,
            "face_token":face_token,
            "faceset_token":faceset_token
            }
    r = requests.post(base_url, params = payload)
    return r.json()